var sourceFile = search.findNode("workspace://SpacesStore/"+args.fileNodeId);
var destinationFolder = search.findNode("workspace://SpacesStore/"+args.destinationNodeId);
var result=false;
var message="";

try {
	if (sourceFile.getIsDocument() && destinationFolder.getIsContainer()) {
		result = sourceFile.move(destinationFolder);
	} else {
		message="Parametrelerde hata.İlk parametre bir dosya(file) ikinci parametre klasör(folder/content) olmalı";
	}
} catch (e) {
	result=e.message;
}
if(message=="") model.result=result.toString();
else model.result=message;